Hello, i want to use isDeleted : if (isDeleted (h)) h is a String is that right ?
Thx Control17 - Wed Aug 16 07:26:21 EDT 2017 |
Re: isDeleted Well, there are several variants:
If the parameter is of type string, it is assumed to be a project name. See e.g. https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014580797 for the perms list and the DXL help for an explanation of the parameters. |
Re: isDeleted Mike.Scharnow - Wed Aug 16 08:56:32 EDT 2017 Well, there are several variants:
If the parameter is of type string, it is assumed to be a project name. See e.g. https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014580797 for the perms list and the DXL help for an explanation of the parameters. thank you .
|
Re: isDeleted Mike.Scharnow - Wed Aug 16 08:56:32 EDT 2017 Well, there are several variants:
If the parameter is of type string, it is assumed to be a project name. See e.g. https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014580797 for the perms list and the DXL help for an explanation of the parameters. Hello , my code show all source and reference , and i want just the Deleted reference , can i use bool isDeleted (sReferencedNumber) hier ?
pragma runLim, 0
pragma stack, 10000
Module m = current
Object o
filtering off
for o in m do {
{
Regexp Reference = regexp2 "\\[[I][t][_ ]+([0-9]+)\\]"
string theText = o."Object Text"
string sReferencedNumber
if (Reference theText) {
sReferencedNumber = theText[match 1]
print "Source It_" o."Absolute Number" "\n"
print "Reference It_ " sReferencedNumber "\n"
}
else
{
}
}
}
|
Re: isDeleted Control17 - Wed Aug 16 09:38:05 EDT 2017 Hello , my code show all source and reference , and i want just the Deleted reference , can i use bool isDeleted (sReferencedNumber) hier ?
pragma runLim, 0
pragma stack, 10000
Module m = current
Object o
filtering off
for o in m do {
{
Regexp Reference = regexp2 "\\[[I][t][_ ]+([0-9]+)\\]"
string theText = o."Object Text"
string sReferencedNumber
if (Reference theText) {
sReferencedNumber = theText[match 1]
print "Source It_" o."Absolute Number" "\n"
print "Reference It_ " sReferencedNumber "\n"
}
else
{
}
}
}
Well, no. First, you have two use cases.
you can create something like
// at the beginning of your code, create a skip list sk of all objects, as suggested in https://www.ibm.com/developerworks/community/forums/html/topic?id=ab69d0e1-d79f-46be-bdd6-2abb188ba2b6
.
.
sReferencedNumber = ...
int iReferencedNumber = intOf realOf sReferencedNumber
Object oReferenced
if (!find (sk, iReferencedNumber, oReferenced)) {
print "object is hard deleted or has never been here"
} else {
if (isDeleted(oReferenced)){
print "object is soft deleted"
}
If you do not want to create a skip list, you first have to manipulate your doors client to show all objects, including deleted objects, removing all filters, showing all leaves etc., then you can use Object oReferenced = object iReferencedNumber if (null oReferenced) -> hard deleted if (isDeleted(oReferennced)) -> soft deleted
|
Re: isDeleted Mike.Scharnow - Wed Aug 16 10:03:14 EDT 2017 Well, no. First, you have two use cases.
you can create something like
// at the beginning of your code, create a skip list sk of all objects, as suggested in https://www.ibm.com/developerworks/community/forums/html/topic?id=ab69d0e1-d79f-46be-bdd6-2abb188ba2b6
.
.
sReferencedNumber = ...
int iReferencedNumber = intOf realOf sReferencedNumber
Object oReferenced
if (!find (sk, iReferencedNumber, oReferenced)) {
print "object is hard deleted or has never been here"
} else {
if (isDeleted(oReferenced)){
print "object is soft deleted"
}
If you do not want to create a skip list, you first have to manipulate your doors client to show all objects, including deleted objects, removing all filters, showing all leaves etc., then you can use Object oReferenced = object iReferencedNumber if (null oReferenced) -> hard deleted if (isDeleted(oReferennced)) -> soft deleted
Thank u |